package com.member.shop.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.member.shop.domain.SysBizRafflePrize;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 抽奖奖品Mapper接口
 *
 * @author lxc
 * @date 2024-03-13
 */
public interface SysBizRafflePrizeMapper extends BaseMapper<SysBizRafflePrize> {
    /**
     * 查询抽奖奖品
     *
     * @param prizeId 抽奖奖品主键
     * @return 抽奖奖品
     */
    SysBizRafflePrize selectSysBizRafflePrizeByPrizeId(Long prizeId);

    /**
     * 查询抽奖奖品列表
     *
     * @param sysBizRafflePrize 抽奖奖品
     * @return 抽奖奖品集合
     */
    List<SysBizRafflePrize> selectSysBizRafflePrizeList(SysBizRafflePrize sysBizRafflePrize);

    /**
     * 新增抽奖奖品
     *
     * @param sysBizRafflePrize 抽奖奖品
     * @return 结果
     */
    public int insertSysBizRafflePrize(SysBizRafflePrize sysBizRafflePrize);

    /**
     * 修改抽奖奖品
     *
     * @param sysBizRafflePrize 抽奖奖品
     * @return 结果
     */
    public int updateSysBizRafflePrize(SysBizRafflePrize sysBizRafflePrize);

    /**
     * 删除抽奖奖品
     *
     * @param prizeId 抽奖奖品主键
     * @return 结果
     */
    public int deleteSysBizRafflePrizeByPrizeId(Long prizeId);

    /**
     * 批量删除抽奖奖品
     *
     * @param prizeIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysBizRafflePrizeByPrizeIds(Long[] prizeIds);

    List<SysBizRafflePrize> selecIsPrizeList(@Param("filteredArray") Long[] filteredArray);
}
